Completed
Pull Request — master (#241)
by
unknown
04:00 queued 01:53
created

script.js ➔ openShareLink   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
const options = {
2
  windowWidth: 600,
3
  windowHeight: 660
4
}
5
6
export function getOptions () {
7
  return options
8
}
9
10
export function openShareLink ($link) {
11
  const url = $link.attr('href')
12
  window.open(url, '_blank', `height=${options.windowHeight},width=${options.windowWidth},toolbar=false,location=false,menubar=false`)
13
}
14